package com.auto.api.framework.interceptor.impl;

import com.auto.api.framework.interceptor.IAspectService;
import com.auto.api.framework.interceptor.IInterceptor;
import javax.annotation.Resource;
import org.aspectj.lang.JoinPoint;
import org.springframework.stereotype.Component;

/**
 * @author liangshf
 * @version 创建时间：2019年09月10日
 * 类说明ControllerAspectService拦截接口实现
 */
@Component("controllerInterceptor")
public class ControllerInterceptor implements IInterceptor {
	@Resource(name="controllerAspectService")
	IAspectService controllerAspectService;
	
	@Override
	public Object interceptor(JoinPoint pjp) throws Throwable {
		//处理上下文操作
		return controllerAspectService.invoke(pjp);
	}
}
